package dev.ece.core.controller.commands;

import dev.ece.core.controller.Command;
import dev.ece.core.engine.Engine;
import dev.ece.util.tools.Camera;

/**
 * @author 潜行的青衣
 * @see
 */
public class CameraTurnBottom extends Command {

	private Camera camera;
	
	private float speedAngle;
	
	public CameraTurnBottom(Camera camera, float speedAngle) {
		this.camera = camera;
		this.speedAngle = speedAngle;
	}

	/* (non-Javadoc)
	 * @see com.ece.demo.controller.Command#onExecute()
	 */
	@Override
	public void onExecute() {
		float angle = Engine.currentTimer().getDalyTime() * this.speedAngle;
		this.camera.turnDown(angle);
	}

	@Override
	public void onKeyPress() {
		
	}

	@Override
	public void onKeyRelease() {
		
	}
	
	public Camera getCamera() {
		return camera;
	}

	public float getSpeedAngle() {
		return speedAngle;
	}

	public void setSpeedAngle(float speedAngle) {
		this.speedAngle = speedAngle;
	}
	
}
